<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>估分系统后台</title>
    <!-- <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script> -->

    <!-- <script type="text/javascript" src="http://mp.weixin.gzpeiyou.com/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="http://mp.weixin.gzpeiyou.com/ueditor/ueditor.all.min.js"></script>
    <script src="http://cdn.gzpeiyou.com/insight/ueditor/lang/zh-cn/zh-cn.js" type="text/javascript" defer="defer"></script>
    <link href="http://cdn.gzpeiyou.com/insight/ueditor/themes/default/css/ueditor.css" type="text/css" rel="stylesheet" /> -->

    <script type="text/javascript" src="http://cdn.gzpeiyou.com/lib/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="http://cdn.gzpeiyou.com/lib/ueditor/ueditor.all.min.js"></script>
    <script src="http://cdn.gzpeiyou.com/lib/ueditor/lang/zh-cn/zh-cn.js" type="text/javascript" defer="defer"></script>
    <link href="http://cdn.gzpeiyou.com/lib/ueditor/themes/default/css/ueditor.css" type="text/css" rel="stylesheet" />

</head>
<body>
  <div class="content" style="display:none;">
    <div class="site-h1"></div>
    <div class="">
      <div id="examList" class="hide">
        <a class="toCreateExam layui-btn layui-btn-normal">创建考试</a>
        <table class="layui-table" style="max-width:800px;">
          <colgroup><col width="150"><col width="200"><col width="400"></colgroup>
          <thead><tr><th>考试名称</th><th>操作</th><th>主页链接</th></tr></thead>
          <tbody></tbody>
        </table>
      </div>
      <div id="createExam" class="hide">
        <a class="backToExamList layui-btn layui-btn-normal">返回考试列表</a>

        <p class="pp">考试名称</p>
        <input id="examName" type="text" style="max-width:500px" name="examName" placeholder="请输入考试名称" class="layui-input">
        <form class="layui-form" action="">
          <div class="layui-form-item" style="margin-top:20px;">
              班型:
              <input type="checkbox" name="class_type" value="培优班" title="培优班">
              <input type="checkbox" name="class_type" value="基础班" title="基础班">
              <input type="checkbox" name="class_type" value="提高班" title="提高班">
              <input type="checkbox" name="class_type" value="尖子班" title="尖子班">
              <input type="checkbox" name="class_type" value="超常班" title="超常班">
              <input type="checkbox" name="class_type" value="尖端班" title="尖端班">
              <input type="checkbox" name="class_type" value="联赛班" title="联赛班">
              <input type="checkbox" name="class_type" value="目标班" title="目标班">
          </div>
        </form>
        <p class="pp">考试说明</p>
        <div id="examDetails" style="height:300px;"></div>
        <a id="saveExam" class="layui-btn" style="margin-top:20px;">提交</a>
      </div>
      <div id="paperList" class="hide">
        <a class="backToExamList layui-btn layui-btn-normal">返回考试列表</a>
        <a class="toCreatePaper layui-btn layui-btn-normal">创建试卷</a>
        <table class="layui-table" style="max-width:800px;">
          <colgroup><col width="150"><col width="200"><col width="400"></colgroup>
          <thead><tr><th>科目</th><th>总分</th><th>操作</th></tr></thead>
          <tbody></tbody>
        </table>
      </div>
      <div id="createPaper" class="hide">
        <form class="layui-form" style="max-width:500px;" action="">
          <div class="layui-form-item">
              <label class="layui-form-label">试卷标题</label>
              <div class="layui-input-inline">
                  <input id="paper_statement" type="text" placeholder="请输入试卷标题" autocomplete="off" class="layui-input">
              </div>
          </div>
          <label class="layui-form-label"></label><div class="layui-input-inline"><a id="addPaperUrl" class="layui-btn">新增链接</a></div>
          <div id="paper_url" style="margin:15px 0;"></div>
          <div class="layui-form-item">
            <label class="layui-form-label">科目</label>
            <div class="layui-input-block">
              <select id="subject" name="subject" lay-verify="required">
                <option value="语文">语文</option>
                <option value="数学">数学</option>
                <option value="英语">英语</option>
                <option value="物理">物理</option>
                <option value="化学">化学</option>
                <option value="政治">政治</option>
                <option value="体育">体育</option>
              </select>
            </div>
          </div>
          <!-- <div class="layui-form-item">
              <label class="layui-form-label">科目</label>
              <div class="layui-input-inline">
                  <input type="text" name="title" required="" lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
              </div>
          </div> -->
          <div class="layui-form-item">
              <label class="layui-form-label">总分</label>
              <div class="layui-input-inline">
                  <input id="score" type="number" name="score" required="" lay-verify="required" placeholder="请输入总分" autocomplete="off" class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <a id="savePaper" class="layui-btn">提交</a>
              <a class="backToPaperList layui-btn layui-btn-normal">返回</a>
            </div>
          </div>
        </form>

      </div>
      <div id="questionList">
        <a class="backToPaperList layui-btn layui-btn-normal">返回试卷列表</a>
        <a class="toCreateQuestion layui-btn layui-btn-normal">新建题目</a>
        <table class="layui-table" style="max-width:800px;">
          <colgroup><col width="150"><col width="200"><col width="200"><col width="400"></colgroup>
          <thead><tr><th>题号</th><th>分值</th><th>选项数量</th><th>操作</th></tr></thead>
          <tbody></tbody>
        </table>
      </div>

      <div id="createQuestion">
        <div class="" style="max-width: 800px;float:left;">

          <a class="backToQuestionList layui-btn layui-btn-normal">返回题目列表</a>
          <table class="layui-table" style="max-width:800px;" lay-skin="line">
            <colgroup><col width="150"><col width="200"><col width="200"></colgroup>
            <thead><tr>
              <th>题号:<span id="questionIdx"></span></th>
              <th>分值: <input id="questionScore" type="number" name="questionScore" value="2" class="layui-input layui-input-inline" style="width:inherit;"></th>
              <th>选项数目: <input id="answerNum" type="number" name="answerNum" value="0" class="layui-input layui-input-inline" style="width:inherit;"></th>
            </tr></thead>
            <!-- <tbody>
              <tr>题干</tr>
              <tr><div id="questionContent"></div></tr>
              <tr>答案（答案及评分标准仅供参考</tr>
              <tr><div id="questionAnwser"></div></tr>
            </tbody> -->
          </table>
          <div class="">
            <p class="pp">素材</p>
            <div id="material" class="h150"></div>
            <p class="pp">题目</p>
            <div id="questionContent" class="h150"></div>
            <p class="pp">答案（答案及评分标准仅供参考）</p>
            <div id="questionAnwser" class="h150"></div>
            <p class="pp">答案解析</p>
            <div id="questionResolution" class="h150"></div>
          </div>
          <div class="bor">
            <form class="layui-form" action="">
              <div class="layui-form-item">
                <label class="layui-form-label">答案: </label>
                <div class="layui-input-block">
                  <input type="checkbox" name="answer" value="A" title="A">
                  <input type="checkbox" name="answer" value="B" title="B">
                  <input type="checkbox" name="answer" value="C" title="C">
                  <input type="checkbox" name="answer" value="D" title="D">
                  <input type="checkbox" name="answer" value="E" title="E">
                  <input type="checkbox" name="answer" value="F" title="F">
                  <input type="checkbox" name="answer" value="G" title="G">
                </div>
              </div>
              <div class="layui-form-item">
                <div class="layui-input-block">
                  <a id="preQuestion" class="layui-btn">上一题</a>
                  <a id="nextQuestion" class="layui-btn">下一题</a>
                  <a id="saveQuestion" class="layui-btn">保存</a>
                  <a id="saveQuestionPreview" class="layui-btn" data-preview="1">保存后预览</a>
                </div>
              </div>
            </form>
          </div>
        </div>
        <div style="display:inline-block;margin-left:10px;">
          <form class="layui-form" action="">
            <!-- <textarea rows="8" cols="60"></textarea> -->
            <textarea id="katexContent" name="desc" placeholder="请输入内容" class="layui-textarea"></textarea>
            <div class="layui-input-block" style="margin-top:10px;">
              <input type="radio" name="katex" value="3" title="素材" >
              <input type="radio" name="katex" value="1" title="题目" checked>
              <input type="radio" name="katex" value="2" title="答案">
              <input type="radio" name="katex" value="4" title="解析">
              <a id="addKatex" class="layui-btn">保存</a>
            </div>
            <div id="katexPreview">

            </div>
          </form>
        </div>
      </div>
    </div>

  </div>
  <div id="previewQuestion" class="hide">

  </div>
</body>
<script type="text/javascript">
  // $(function(){
    window.app = {};
    app.dynamicLoadingJs=function(e,d){var c=document.createElement("script");var b=document.getElementsByTagName("head")[0];c.src=e;if(typeof d==="function"){var a;c.onload=c.onreadystatechange=function(){if(!a&&(!c.readyState||/loaded|complete/.test(c.readyState))){c.onload=c.onreadystatechange=null;a=true;d()}}}b.appendChild(c)};
    app.dynamicLoadingCss=function(h,i){var j=document.createElement("link");var f=document.getElementsByTagName("head")[0];j.href=h;j.rel="stylesheet";j.type="text/css";if(typeof i==="function"){var g;j.onload=j.onreadystatechange=function(){if(!g&&(!j.readyState||/loaded|complete/.test(j.readyState))){j.onload=j.onreadystatechange=null;g=true;i()}}}f.appendChild(j)};

    app.resPath = 'http://cdn.gzpeiyou.com/single/';
    app.libPath = 'http://cdn.gzpeiyou.com/lib/';
    app.isLocal = location.href.indexOf('single/score')==-1;
    if(app.isLocal){
      app.resPath = '../view/dist/';
    }
    app.dynamicLoadingCss(app.libPath+'katex/katex.min.css');
    app.dynamicLoadingJs(app.libPath+'katex/katex.min.js');
    // app.dynamicLoadingJs(app.libPath+'mathjax/MathJax.js?config=TeX-AMS_CHTML');

    app.dynamicLoadingCss(app.libPath+'layui/css/layui.css');
    app.dynamicLoadingJs(app.libPath+'layui/layui.js',function(){
      app.dynamicLoadingJs(app.resPath+'js/score_estimate/init.js?bust='+new Date().getTime());
    });


</script>
</html>
